package com.shopAttr.feign.factory;

import com.shopAttr.bean.ShopAttr;
import com.shopAttr.feign.ShopAttrFeign;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;
import shopBean.common.bean.RestResult;

import java.util.List;


@Component
public class ShopAttrFeignFactory implements FallbackFactory<ShopAttrFeign> {


    @Override
    public ShopAttrFeign create(Throwable throwable) {
        return new ShopAttrFeign(){

            @Override
            public RestResult<ShopAttr> insert(ShopAttr shopAttr) {
                return null;
            }

            @Override
            public RestResult deleteById(String id) {
                return null;
            }

            @Override
            public RestResult<List<ShopAttr>> getByPid(String id) {
                return null;
            }

            @Override
            public RestResult update(ShopAttr shopAttr) {
                return null;
            }

            @Override
            public RestResult<List<ShopAttr>> getFristByShopId(String shopId) {
                return null;
            }

            @Override
            public RestResult<List<ShopAttr>> getByShopId(String shopId) {
                return null;
            }
        };
    }
}
